package com.course.web.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * Created by Justin on 2017/6/11.
 */
@Data
@EqualsAndHashCode(of = {"id"})
public class TaskAudioVM implements HasID {
    @Min(0)
    private int id;
    @Min(0)
    private final int courseId;
    @NotEmpty
    private String title;
    @Min(1)
    private int times;
    @Range(min = 10, max = 300)
    private int speed;
    @NotEmpty
    private String detail;
    @NotEmpty
    private String audioLink;
    @NotEmpty
    private String albumLink;
}
